#include "mainwindow.h"
#include "ui_mainwindow.h"
#include <QtGui/QApplication>
#include "ExampleScene.h"
MainWindow::MainWindow(QWidget *parent) :
    QMainWindow(parent),
    ui(new Ui::MainWindow)
{
    ui->setupUi(this);

    // set scene creation callback function. Creation function is called
    // after actual platform dependent rendering function is initializad.
    ui->widget->setSceneCreateFunc(ExampleScene::createInstance);
}

MainWindow::~MainWindow()
{
    delete ui;
}


int main(int argc, char *argv[])
{
    QApplication a(argc, argv);
    MainWindow w;
    w.show();

    return a.exec();
}
